package cloud.misiro.module.system.dal.mysql.oauth2;

import cloud.misiro.framework.common.pojo.PageResult;
import cloud.misiro.framework.mybatis.core.mapper.BaseMapperX;
import cloud.misiro.module.system.dal.dataobject.oauth2.OAuth2ClientDO;
import org.apache.ibatis.annotations.Mapper;

/**
 * OAuth2 客户端 Mapper
 *
 * @author misiro
 */
@Mapper
public interface OAuth2ClientMapper extends BaseMapperX<OAuth2ClientDO> {

    default OAuth2ClientDO selectByClientId(String clientId) {
        return selectOne(OAuth2ClientDO::getClientId, clientId);
    }
}
